package com.atguigu.common.exception;

/**
 * @author achao
 * @version 1.0
 */

public enum  ResultCodeEnum {
    UNKNOWN_EXCEPTION("系统未知异常", 10000),
    VALID_EXCEPTION("参数格式校验失败", 10001);

    private String message;
    private Integer code;

    ResultCodeEnum(String message, Integer code) {
        this.message = message;
        this.code = code;
    }

    public String getMessage() {
        return message;
    }

    public void setMessage(String message) {
        this.message = message;
    }

    public Integer getCode() {
        return code;
    }

    public void setCode(Integer code) {
        this.code = code;
    }
}
